package actionHandlers;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import palette.CanvasManager;

class ShapeBuildHandler implements ActionListener {

	@Override
	public void actionPerformed(ActionEvent arg0) {
		String x;
		if(CanvasManager.getInst().getSelectedFrame() == null)
		{
			x = "New File 0 builder";
		}
		else
		{
			x = CanvasManager.getInst().getSelectedFrame().getTitle();
			x = x + " builder";
		}
		CanvasManager.getInst().addNewBuilder(x);
	}

}
